﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NewstorePlateformeDAO
{
    public partial class Lieux
    {
        public static int? GetId(string codeLieu)
        {
            int? id = null;

            using (Newstore_PL_GOLD_BDDEntities context = new Newstore_PL_GOLD_BDDEntities(EntitiesHelper.connexionString))
            {
                id = (from o in context.Lieux
                      where o.codeLieu == codeLieu
                      select o.idLieux).FirstOrDefault();
            }

            return id;
        }
    }
}
